/**
 * RoleService.java
 * Created at 2017-07-06
 * Created by Jackie liu
 * Copyright (C) 2014 , All rights reserved.
 */
package com.huabo.service.inter;

import com.huabo.base.BaseService;
import com.huabo.model.Role;
import com.huabo.utils.Page;

import java.util.List;
import java.util.Map;

/**
 * <p>ClassName: RoleService</p>
 * <p>Description: 角色管理service接口</p>
 * <p>Author: Jackie liu</p>
 * <p>Date: 2017-07-06</p>
 */
public interface RoleService extends BaseService<Role, Long> {

    public List<Role> queryByUserId(Long userId);

    public List<Role> query(Map<String, Object> params);

    public Page<Role> queryPage(Map<String, Object> params);

    public int batchRemove(Long[] ids);

    public int modifyState(Long[] ids, int state);

    public Boolean isDuplicateName(Long id, String name);
}